home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d15 / fntmgr11.arc / USERGUID.TXT < prev   
Text File  |  1991-07-13  |  22KB  |  430 lines

  1. FontManager for Windows - User's Guide
  2.  
  3.     FontManager automates the task of changing softfont entries in the
  4. PostScript application sections of WIN.INI. It was primarily written for
  5. users with more type 1 postscript fonts than can be contained in WIN.INI at
  6. one time. It will allow you to create pre-built FontPaks or font sets which
  7. can be quickly swapped into the desired PostScript printer section of Win.ini.
  8. It alleviates the common kludges of having multiple win.ini files that are
  9. activated as necessary. You may put more than one FontPak on a printer port,
  10. add individual fonts and save the contents of a printer port as a FontPak file.
  11. Thus, in addition to being able to build fontpaks in advance, you can modify
  12. the installed fonts on a port and save that setup to a FontPak for later use.
  13. You will still have to live with the Windows limit of approximately 150
  14. installed soft fonts on a port, however.
  15.     FontManager only manages .PFB and .PFM Postscript type 1 font files.
  16. It does not recognize nor deal with .AFM type files or other than Type 1
  17. postscript fonts.
  18.     Any time you modify the installed font set on a postscript port, the
  19. changes become effective in windows immediately. Unfortunately, most programs
  20. I've tried such as Page Maker and Word for Windows won't update their font
  21. resources when they receive the wm_WININICHANGE message from windows. They
  22. must be closed and re-opened.
  23.  
  24. WHAT FONTMANAGER DOES TO WIN.INI
  25.  
  26.     Quite simply, it just creates the necessary soft font lines to
  27. identify installed soft fonts. The lines have the following format:
  28.  
  29. ;FONTPAKINSTALLED=[pakname] 
  30. SOFTFONTS=XX
  31. SOFTFONTYY=[drive]:\[path]\[filename].PFM
  32. (or)
  33. SOFTFONTYY=[drive]:\[path]\[filename].PFM,[drive]:\[path]\[filename].PFB
  34.  
  35. The paths for .PFM and .PFB files may be as deep as you like and there is no
  36. need for any relationship between .PFM and .PFB directories. There is a limit
  37. of 40 characters for a files path string.
  38.  
  39. FontManager also creates a dummy application section in WIN.INI with the
  40. following lines:
  41.  
  42.     [FONTMANAGER]
  43.     FontManager=Installed
  44.  
  45. This section is used by the WriteProfileString windows API call that forces
  46. Windows to re-read WIN.INI. Without this section, the API call places
  47. "[],=" at the end of Win.ini. This doesn't create any problems, but it can
  48. be confusing for anyone looking at WIN.INI.
  49.  
  50. INSTALLING FONTMANAGER
  51.  
  52.     There are four basic files you will need to use FontManager:
  53.  
  54.     1. FONTMGR.EXE    This is the main executable file. It may be placed
  55.             anywhere you like, but I would suggest creating a
  56.             directory on the same drive as your windows directory
  57.             named [drive]:\FONT_MGR. If you don't create this
  58.             directory, the initial setup routine will create it
  59.             as this is where all Fontpaks will be stored.
  60.             
  61.     2. HUGEARR.DLL    This is a windows Dynamic Link Library that handles
  62.             huge array processing. It must be placed in the main
  63.             windows directory unless you want to add the
  64.             \FONT_MGR directory to your path and we know you
  65.             dont want to do that. If you don't have it, it is
  66.              available on CIS, MSLANG, Lib 6, "HUGARR.ZIP"
  67.  
  68.     3. PSETUP.DLL    This is a very small DLL library file which also must
  69.             be placed in the Windows main directory. It handles
  70.             all the printer setup routines.    It is the work of
  71.             Costas Kitsos, and it is included with this upload.
  72.  
  73.     4. VBRUN100.DLL    This is the main Visual Basic run time Dynamic Link
  74.             Library (DLL) file. It, too, must be located in your
  75.             windows directory. This file is also on CIS, MSLANG,
  76.             Lib 6, as VBRUN.ZIP
  77.  
  78.     Simply place these files in the correct directories, fire up windows
  79. and run FONTMGR.EXE. The first time you run FontMgr.EXE, only one menu item
  80. will be active - FILES/INITIAL SETUP. Simply click on the FILES menu and then
  81. INITIAL SETUP - it's the only one available. You will be asked what drives
  82. you want searched for font files to catalog, and then sit back and enjoy.
  83. This process may take a few minutes on machines with huge hard drives and/or
  84. a very large number of fonts. When testing on a 386/33 with hyperdisk and a
  85. total of 1823 PFM and 1823 PFB files, it took about 3 minutes to search, build
  86. indexs, sort, and create the master file.
  87.  
  88. FONTMANAGER LIMITATIONS
  89.  
  90.     FontManager is capable of managing up to 2048 type 1 postscript fonts.
  91. As with most PC programs, this limit has its roots in the "Sector" format of
  92. DOS memory. Handling more than this number of fonts would require foregoing
  93. some very fast binary string processing, or in short, it would slow things
  94. down a bunch.
  95.     Further, FontManager is limited to 6 installed PostScript ports in
  96. WIN.INI. If you have more than six, FontManger will only work with the first
  97. six it finds.
  98.     FontManager has not been designed for or tested in any network
  99. environments.
  100.  
  101. WHAT INITIAL SETUP DOES
  102.  
  103.     First it searches the drives you indicate for all .PFM and .PFB files
  104. and catalogs them. It then matches up .PFM and .PFB files for the same font.
  105. Missing .PFB files are no problem and will be normal for users with fonts
  106. stored on a printer's hard disk. It will list any .PFB files it finds without
  107. a matching .PFM file, however. Fonts with a .PFM file but no .PFB file are
  108. forced to a PRINTER RESIDENT status when creating FontPaks and adding these
  109. fonts to a port regardless of how you set the resident/not resident option at
  110. that time.
  111.     Initial setup will ceate the directory [windows drive]:\FONT_MGR if it
  112. does not already exist. It will place the master font library file
  113. (LIBRARY.FNT) in this directory. This file along with all FontPak files must
  114. be in this directory for FontManager to find them. Maybe I'll get tricky in a
  115. later version and allow you to designate your own directory name like the
  116. shrink wraps, but for now, you'll have to live  with a directory named
  117. FONT_MGR. 
  118.     Once you have run the initial setup, all the other menu options will
  119. be activated, and the INITIAL SETUP menu will be disabled. The only way you
  120. can run INITIAL SETUP again is to manually delete the LIBRARY.FNT file from
  121. the \FONT_MGR directory.
  122.  
  123.     To get a printed listing of your Font Library, simply use the PRINT
  124. MASTER LIBRARY menu under the FILES menu. This listing will be needed if you
  125. opt to use Font ID numbers for creating fontpaks. It's also a good reference
  126. of all the Type 1 postscript fonts you have on your system.
  127.  
  128. LIBRARY.FNT MASTER FILE
  129.  
  130.     This file is created when the initial setup is run. It is a random
  131. access file with information on all the fonts Initial Setup and subsequent
  132. Updates find on user selected logical disk drives. If this file is ever
  133. deleted and re-created using Initial Setup, ALL EXISTING FONTPAK FILES WILL
  134. BE INVALID AND MUST BE DELETED. I STRONGLY SUGGEST MANUALLY MAKING A BACKUP
  135. COPY OF THIS FILE AFTER INITIAL INSTALLATION AND ANY TIME IT IS UPDATED WITH
  136. THE UPDATE PROCEDURE.
  137.  
  138. UPDATE MASTER FILE
  139.  
  140.     This routine again searches selected drives for all .PFM and .PFB
  141. files. This time, however, it will simply add any new files to the master
  142. library file. You may run this routine as often as you like, but it will do
  143. nothing unless it finds new files. It's designed to be run after you've added
  144. new fonts to the system, Update can be run for a single logical drive even if
  145. you have fonts on more than one drive. Thus, if you add fonts to only one
  146. drive, you don't have to search all drives as with initial setup.
  147.     If a font in the master library no longer has a .PFM file, it will
  148. mark that font as deleted so that it can't be used in future fontpaks. No
  149. attempt is made at this time to update existing FontPaks that contain any
  150. deleted files. This is a doable feature for the next version.
  151.  
  152. CREATING FONTPAKS
  153.  
  154.     You may create FontPaks in one of two ways. You may either enter the
  155. desired fonts by their Font ID Number as shown on the printed Master Library
  156. Catalog, or you can select fonts based on thier full name from a displayed
  157. selection list.  
  158.     When using the Font ID method, I used a technique not normally found
  159. in window apps. You enter the font ID number in a text box and press enter to
  160. accept it. Normally in windows apps, pressing enter selects the OK or CONTINUE
  161. or some such command button while the tab key usually accepts data from a text
  162. box. As only numbers are used to create FontPaks in this mode and the TAB key
  163. is on the other side of the keyboard, I used this ENTER method. If you enter
  164. an incorrect font ID, just select the appropriate displayed line for it and
  165. press the delete button.
  166.     When selecting fonts based on font names, a more traditional windows
  167. approach is used. You'll have a list of available fonts on the left, and a list
  168. of selected fonts on the right. Simply click on the desired font in the
  169. available list, and it will be transfered to the selected list. FontManager
  170. will not allow you to select a font more than once. You can remove a selected
  171. font by clicking on it and pressing the delete button.
  172.     You may also include whole fontpaks when creating a new fontpak. Simply
  173. press the INCLUDE FONTPAK button, select the desired fontpak and it will be
  174. inserted. FontManager will not allow duplicating font's in a fontpak, so don't
  175. worry if an included fontpak includes some fonts that you have already selected
  176. for inclusion.
  177.  
  178. MODIFYING FONTPAKS
  179.  
  180.     This procedure uses exactly the same window as creating a font pack
  181. using font names. It simply starts with the FontPak to modify already loaded
  182. into the selected list. You may add fonts, delete fonts or include other
  183. fontpaks just as when creating a new fontpak.
  184.  
  185. DELETEING FONTPAKS
  186.  
  187.     Another no-brainer. Select DELETE A FONTPAK from the FILES menu, select
  188. the desired FontPak, press Delete, answer yes to another "Are you sure?" query,
  189. and it's gone. If you delete a fontpak by mistake, hopefully you have Norton
  190. Utilities handy.
  191.  
  192. PRINTING THE MASTER CATALOG AND FONTPAK LISTS
  193.  
  194.     Again, very straight forward. You may print to either a PostScript or
  195. other type printer. If you're using a PostScript printer, FontManager will
  196. recognize the selected paper size and print accordingly.
  197.  
  198. SETUP PRINTER
  199.  
  200.     This feature utilizes the small Psetup.DLL created by Costas Kitsos.
  201. It simply allows you access to your printer driver setup feature. If you wish
  202. to actually change selected printers, you will need to do that through Control
  203. Panel.
  204.  
  205. LIST INSTALLED FONTPAKS
  206.  
  207.     This routine is in the "WIN.INI" main menu. It simply displays every
  208. PostScript port you have and the FontPak that is installed on each. If you have
  209. modified an installed FontPak by adding another fontpak or individual fonts to
  210. a port, it will say "CUSTOM". If you have no softfonts installed on a port, it
  211. will say "NONE". If one of the displayed postscript ports is also the active
  212. printer port, that line will be highlighted.
  213.  
  214. CHANGE OR SAVE FONTS
  215.  
  216.     This is the actual routine to make changes to installed softfonts with
  217. FontManger. It is decribed in detail below. If you ever look at WIN.INI in a
  218. text editor after it has been modified by FontManger, you'll see the line:  
  219. ;FONTPAKINSTALLED=[text] immediately preceeding the SOFTFONTS=XX line. This
  220. line is used by FontManger to know what pak is installed on that port. It is
  221. installed as a comment line to preclude it interfering in any way with that
  222. ports functionality.
  223.  
  224. MOVING .PFM and .PFB FILES
  225.  
  226.     If you should move any PFM or PFB files, FontManager will update the
  227. master library file with the new locations the next time UPDATE is run on the
  228. drive that contains the moved files. No changes are necessary to any FontPaks
  229. if any font files are moved. Just Make sure to run UPDATE after moving any
  230. file.
  231.      
  232. CHANGING A PRINTER PORT'S FONT SETUP
  233.  
  234. You may perform any combination of 4 actions in this window:
  235.         
  236. 1. REPLACE A PORT'S FONTPAK:  This action will delete all currently installed
  237. softfonts lines from the selected Port or ports and install the selected font
  238. pack.
  239.  
  240. 2. ADD A FONTPAK TO A PORT:  This action will add the selected FontPak to any
  241. currently installed softfonts installed on the selected port. No exisitng
  242. softfont lines are deleted. 
  243.  
  244. 3. ADD SINGLE FONTS TO A PORT:  This action will add selected single fonts to
  245. any currently existing softfont lines on the selected ports. 
  246.  
  247. 4. SAVE PORT SETUP TO A FONTPAK:  This action will save the softfont
  248. configuration of a selected port to a FontPak file for future use. The FontPak
  249. file created may be printed and modified just like any other FontPak. The SAVE
  250. action is only available when only one port is selected. If you have selected
  251. more than one port, SAVE will not be available.
  252.  
  253.     In steps 1 thru 3, the softfonts=xx line is updated to reflect the
  254. actual number of softfont lines for that port. Additionally, FontManager makes
  255. it impossible to have a font listed more than once in a port section. Even if
  256. you add a fontpak that contains some fonts already in the section, it will not
  257. make duplicate entries for the same font.
  258.  
  259.     You may perform any combination or all of these actions at one time.
  260. You may replace the base fontpak, add a second font pak, and add some
  261. individual fonts.  If your actions only affect one port, you may also save the
  262. final font contents created on that port to a fontpak file.  The SAVE action
  263. may also be used by itself to create a fontpak file from a port's font
  264. configuration.  The only limitation is that you may only ADD one FontPak with
  265. the Add FontPak action. You may add all the single fonts you want.
  266.  
  267. REPLACING AND MODIFYING INSTALLED SOFTFONTS
  268.  
  269.     Modifying a port's installed softfonts is done in two steps. First,
  270. select the printer port(s) you want to change, select a desired action, select
  271. the appropriate FontPak or individual softfonts to use and click on Post
  272. Change. Then select the next desired action, FontPak or fonts and click on
  273. Post Change again. Clicking on Post Change tells the system that you are done
  274. with this action and ready to do another. When you click on Post Change, the
  275. selected Action button line will change from blue to red to indicate this
  276. action will occur when you finally Write Win.Ini. If you find you're working
  277. on the wrong action line, simply click on the correct action line without
  278. pressing Post Change. If you're unsure about an action you have already
  279. comitted (Action button line is red), simply click on that action line again
  280. and make any necessary changes. 
  281.  
  282. NOTE: At this time, there is no way to completely UNDO an action once it has
  283. been committed with Post Change. If you have slected an action and Posted it,
  284. you can change the Port, the FontPak or the individual fonts, but you can't
  285. stop the basic action from occuring when you Write Win.Ini. The only current
  286. way to get out of this situation is to Exit the window and restart it from the
  287. Main Menu.  Candidly, I've run out of room on the window for another command
  288. button to UNDO and I'll need to modify the window to handle this.
  289.  
  290. SELECTED PORTS TO MODIFY
  291.  
  292.     This selection determines which PostScript printer ports will be
  293. modified. When Win.Ini is finally written, all actions will occur for the
  294. Port(s) selected at that time. Thus, you can change the desired ports between
  295. different change actions if the original selections were incorrect. If you have
  296. selected multiple ports, the same changes will be carried out on all the
  297. selected ports.
  298.  
  299. SELECTING INDIVIDUAL FONTS TO ADD TO PORT
  300.  
  301.     The sub-dialog box for this action is very similar to the Create a
  302. FontPak window. Simply enter the Font ID number for the desired font(s) in the
  303. Add Font# text box and press ENTER after each one. Alternatively, you can press
  304. the SHOW FONTS button which will display a list of all fonts in the master
  305. library. When this list is displayed, double clicking on an available font will
  306. place it in the selected list. The list of availbale fonts can be erased by
  307. either pressing SHOW FONTS again, or exiting the Add Individual Fonts action.
  308. If you add an incorrect font ID, simply select the bad font in the list and
  309. press Delete Font. The printer resident box is straight forward. When selected,
  310. it indicates fonts are printer resident. When not selected, it indicates fonts
  311. are NOT printer resident. It can be changed for each font added. When the Add
  312. SINGLE Fonts to a Port action button is inactive, the entire Select Individual
  313. Fonts sub-dialog is disabled.
  314.  
  315. POST CHANGE
  316.  
  317.     This command button acts to validate an action. If you're missing
  318. something required for the particular change to occur, you will be prompted
  319. for the missing information. If you do not press Post Change before going to
  320. another Action, the action just left WILL NOT be carried out when Write Win.Ini
  321. is selected.  Post Change also turns the selected Action line red to indicate
  322. that this action will occur when you do Write Win.Ini.
  323.  
  324. WRITE WIN.INI
  325.  
  326.     This is the big one that will actually cause all selected actions and
  327. changes to be made to Win.ini. If you select Write Win.Ini by mistake, there is
  328. still a dialog box which summarizes all your changes where you'll be able to
  329. abort. Even if you don't abort here and discover a problem, Win.Ini is saved
  330. to a file named WIN.WFM in your windows directory which may be manually copied
  331. back to WIN.INI to restore the previous setup. In the next revision, the option
  332. to do this automatically will be added.
  333.     Write Win.Ini also forces Windows to re-read Win.Ini and update the
  334. system resources. Thus, all changes you make with FontManager are immediately
  335. available to all Windows apps. This is accomplished by sending the
  336. wm_WININICHANGE message. If a running app does not respond to this message by
  337. updateing it's font resources, you'll have to close and re-open that app for
  338. the new fonts to be available in it. Unfortuneatly, PageMaker and Word for
  339. Windows are two big ones that don't update their font resources even when
  340. notified by windows of a change in resources.
  341.  
  342. SUMMARY MESSAGE BOX
  343.  
  344.     After selecting Write Win.Ini to make your changes, you'll get a dialog
  345. box that summarizes what changes will be made. It will also give you the option
  346. of aborting these changes and return to the Change Window. 
  347.  
  348. IF YOU'RE NOT SURE
  349.  
  350.     If you make some complex changes to a port and aren't sure about their
  351. accuracy, simply start over and do it again.  
  352.  
  353. ADDING MULTIPLE FONTPAKS TO A PORT
  354.  
  355.     You may ADD multiple font packs to a port by doing it one at a time.
  356. Select ADD a FontPak to a Port, select the port and FontPak, press Post Change,
  357. Write Win.ini and repeat  these steps until all the desired FontPaks have been
  358. added to the port. Just remember that Win.Ini has a practical limit of
  359. somewhere around 150 fonts.
  360.  
  361. ORDER ACTIONS ARE CARRIED OUT
  362.  
  363.     Actions are carried out in the same order the Action Button Lines are
  364. displayed in the window. Save Port to a FontPak is the last action. This allows
  365. you to make any combination or all of the first three Actions and save the
  366. result of those Actions to a new FontPak in one pass. Remember, the SAVE action
  367. is only available if you're acting on only a single port. If you select more
  368. than one port, the SAVE action is disabled.
  369.  
  370. AVAILABLE FONTPAKS
  371.  
  372.     The Available FontPak list displays FontPaks with their ".FP" file
  373. extensions which FontManager adds to the names of all FontPak files. Whenever
  374. you are asked for a FontPak name, you DO NOT need to enter this extension.
  375. Doing so, however, won't hurt a thing. 
  376.  
  377. GENERAL - SCREEN DESIGNS vs SCREEN RESOLUTION
  378.  
  379.     The windows in FontManger were written to look the best on high
  380. resolution video systems, 1024x768 in particular. They display just fine in
  381. std VGA mode, but do look a little "Horsey" to steal a Kathleen Tinkel phrase.
  382. I just felt most people with enough fonts to need this program would have
  383. better than VGA resolution video systems.
  384.  
  385. FONT ID NUMBERS
  386.  
  387.     During Initial Setup and Update, FontManager assigns Font ID Numbers
  388. to each font it adds to the Master Font Library. These Font ID Numbers are used
  389. when creating new fontpaks and when adding individual fonts to a printer port.
  390. When FontManager is initally setup, these Font ID numbers are in the same order
  391. as the alphabetical order of the full font names. As the UPDATE routine adds
  392. newly installed fonts, they are added to the end of the master file and their
  393. Font ID numbers have no relationship to any alphabetical order. Thus, if the
  394. 1789th font added to the library is named AARDVARK, it will have the Font ID
  395. number 1789 and not 1. Just don't be surprised when you print a Master Font
  396. Library Catalog which is ordered alphabetically by full font name and the Font
  397. ID numbers are not in order.
  398.  
  399. VIEW/EDIT WIN.INI
  400.  
  401.     Selecting this option under the FILES menu will display the current
  402. WIN.INI file in a text box. You may move through this text box with the scroll
  403. bars, up/down arrows or page up/page down keys. You may also edit WIN.INI in
  404. this text box. All the standard Windows text box editing tools are available.
  405. Save the edited version by selecting SAVE from the FILE menu. If you save an
  406. edited version of WIN.INI, Windows will re-read it immediately.
  407.  
  408. WHO'S RESPONSIBLE?
  409.  
  410. The guy below did it, and he'd sure appreciate any comments about problems or
  411. ways to improve this program. If you need to get ahold of me, I can be reached
  412. at:
  413.  
  414.     Dennis Harrington
  415.     7300 Evergreen Way
  416.     Everett, Wa. 98203
  417.     (206) 355-6690
  418.     CIS id: 76216,3472
  419.  
  420. THERE IS NO REGISTRATION FEE OR ANY OTHER FEES NEEDED TO USE FontManager. It is
  421. totally public domain freeware. Please feel free to share it with anyone you
  422. want if you find it helpful. Consider it my token of appreciation for all the
  423. help I've received from the members of the DTP forum on CIS. The author sure
  424. wouldn't turn down any C notes, though.
  425.  
  426. THE CURRENT WINDOWS VERSION OF FONTMANAGER IS A BETA VERSION. IF IT CAUSES ANY
  427. PROBLEMS OF ANY KIND, PLEASE LET ME KNOW, BUT PLEASE DON'T EXPECT ANY KIND OF
  428. FINANCIAL ASSISTANCE. CONSIDER THIS THE OLD "I AIN'T RESPONSIBLE FOR NOTHIN"
  429. DISCLAIMER.
  430.